package com.lishe.lishe.lishe.module.excitation.bean;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created by DELL on 2017/11/1.
 */

public class PersonGiftObject implements Parcelable{
    private int giftId;//	小礼ID
    private int giftCost;//	小礼价值
    private String userId;//	用户Id
    private String giftName;//	小礼名称
    private String giftImgUrl;//	小礼图片路径
    private int num;//小礼数量

    protected PersonGiftObject(Parcel in) {
        giftId = in.readInt();
        giftCost = in.readInt();
        userId = in.readString();
        giftName = in.readString();
        giftImgUrl = in.readString();
        num = in.readInt();
    }

    public static final Creator<PersonGiftObject> CREATOR = new Creator<PersonGiftObject>() {
        @Override
        public PersonGiftObject createFromParcel(Parcel in) {
            return new PersonGiftObject(in);
        }

        @Override
        public PersonGiftObject[] newArray(int size) {
            return new PersonGiftObject[size];
        }
    };

    public int getGiftId() {
        return giftId;
    }

    public void setGiftId(int giftId) {
        this.giftId = giftId;
    }

    public int getGiftCost() {
        return giftCost;
    }

    public void setGiftCost(int giftCost) {
        this.giftCost = giftCost;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getGiftName() {
        return giftName;
    }

    public void setGiftName(String giftName) {
        this.giftName = giftName;
    }

    public String getGiftImgUrl() {
        return giftImgUrl;
    }

    public void setGiftImgUrl(String giftImgUrl) {
        this.giftImgUrl = giftImgUrl;
    }

    public int getNum() {
        return num;
    }

    public void setNum(int num) {
        this.num = num;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeInt(giftId);
        dest.writeInt(giftCost);
        dest.writeString(userId);
        dest.writeString(giftName);
        dest.writeString(giftImgUrl);
        dest.writeInt(num);
    }
}
